<?php
    if($_SESSION=="Quản trị"){
        $thoatchucnang = "../admin/tinnhan.php";
    }else{
        $thoatchucnang = "../view/tinnhan.php"; 
    }
?>
    <div    id="tinnhan" >
         <div id="form">
            <div class="formHeader">
                <p> Gửi Tin Nhắn</p>
            
        
            </div>
            <div id="formContent">
               <table cellpadding=0 cellspacing =0 >
                    <form action="../controller/xuly_guitinnhan.php" method="post" name="frtinnhan" id="frmtinnhan" onsubmit="return kiemtrafrmtn();">
                        <tr>
                            <td  align="right">ID </td>
                            <td><input style="height:26px; width: 175px; padding-right: 5px;"  type="text" id="idnhanvien" name="idnhanvien" width="50" maxlength="100" value="" placeholder="Nhập mã Nhân Viên"/>  </td>
                        </tr>
                        <tr>
                            <td align="right">Tiêu Đề</td>
                            <td><input type="text" name="tieude" id="tieude" style="height:26px; width: 175px; padding-right: 5px;" value="" placeholder="Tiêu đề Tin Nhắn" /> </td>
                        </tr>
                        <tr>
                            <td colspan="2"> <textarea rows="10" cols="30" wrap="off" style="width: 100%;"  name="noidungtinnhan" id="noidungtinnhan"></textarea></td>
                        </tr>
                        <tr>
                            <td>  <input type="submit" id="guiTinNhan" name="guiTinnhan" value="Gửi Tin Nhắn"/> </td>
                            <td align= "left"><a href="<?php echo $thoatchucnang; ?>">Thoát khỏi chức năng</a></td>
                        </tr>
                    </form>
               </table>
                
                
        
            
            </div>
        </div>
    </div>
